﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Diagnostics;
using OCDStudio.SqlAzureBackup.Client.Code;
using OCDStudio.SqlAzureBackup.Client.Properties;

namespace OCDStudio.SqlAzureBackup.Client
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (!BackupUtils.CheckPrerequisites(Settings.Default.PreRequisites.Split(',')))
            {
                MessageBox.Show("Missing pre-requisites! Exiting...","Attention",MessageBoxButtons.OK,MessageBoxIcon.Asterisk);
                return;
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
    }
}
